import Vue from 'vue'
import VueRouter from 'vue-router'
import home from './modules/home.js'
import news from './modules/news.js'

Vue.use(VueRouter)

const routes = [
  ...home,
  ...news
]

const router = new VueRouter({
  routes
})

router.beforeEach((to, from, next) => {
  next()
})

export default router
